package oop.day01;

public class test
{

    public static void main(String[] args)
    {
        Base anObj = new Child();
        Base baseObj = (Base) anObj;
        baseObj.test();
    }
}

class Base
{
    void test()
    {
        System.out.println("Base.test");
    }
}


class Child extends Base
{
    void test()
    {
        System.out.println("Child.test");
    }
}
